package com.jeff.tianti.org.service;

import com.jeff.tianti.common.entity.PageModel;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.org.dao.PatientDao;
import com.jeff.tianti.org.dto.PatientQueryDTO;
import com.jeff.tianti.org.entity.Patient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author guost
 * @Date 2019/2/9 17:51
 **/
@Service
public class PatientService extends CommonService<Patient,String> {
    @Autowired
    private PatientDao patientDao;

    @Autowired
    public void setPatientDao(PatientDao patientDao) {
        super.setCommonDao(patientDao);
    }

    /**
     * 根据病人信息查询分页信息
     * @param patientQueryDTO
     * @return
     */
    public PageModel<Patient> queryPatientPage(PatientQueryDTO patientQueryDTO){
        return this.patientDao.queryPatientPage(patientQueryDTO);
    }
}
